#include "example.h"
#include <QtPlugin>

Q_EXPORT_PLUGIN2(example, Example); // first is target name in project file

Example::Example(){
	printf("Example contructor. parent: %lX\n", (unsigned long)parent());
	setObjectName("Example");
	setText("Hello world of QT plugins.");
}

Example::~Example(){
	printf("Example destructor.\n");
	printf("Example destructor. parent: %lX\n", (unsigned long)parent());
}

void Example::onInitialize( QObject *manager ){
	printf("Example init. parent: %lX\n", (unsigned long)parent());
	printf("Example init. manager: %lX\n", (unsigned long)manager);
}

